package com.party.core.model.enterpriseservice;

import com.party.core.model.BaseModel;

import java.io.Serializable;
import java.util.Objects;

/**
 * @program: party
 * @description: 企业服务
 * @author: Hua Qunhao
 * @create: 2019-01-08 14:33
 */
public class EpService extends BaseModel implements Serializable {

    //服务名称
    private String title;
    //封面图
    private String pic;
    //服务简介
    private String subTitle;
    //服务详情
    private String content;
    //服务url
    private String url;
    //排序
    private Integer sort;

    private String categoryId;

    private String categoryList;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryList() {
        return categoryList;
    }

    public void setCategoryList(String categoryList) {
        this.categoryList = categoryList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        EpService epService = (EpService) o;
        return Objects.equals(title, epService.title) &&
                Objects.equals(pic, epService.pic) &&
                Objects.equals(subTitle, epService.subTitle) &&
                Objects.equals(content, epService.content) &&
                Objects.equals(url, epService.url) &&
                Objects.equals(sort, epService.sort) &&
                Objects.equals(categoryId, epService.categoryId) &&
                Objects.equals(categoryList, epService.categoryList);
    }

    @Override
    public int hashCode() {

        return Objects.hash(super.hashCode(), title, pic, subTitle, content, url, sort, categoryId, categoryList);
    }

    @Override
    public String toString() {
        return "EpService{" +
                "title='" + title + '\'' +
                ", pic='" + pic + '\'' +
                ", subTitle='" + subTitle + '\'' +
                ", content='" + content + '\'' +
                ", url='" + url + '\'' +
                ", sort=" + sort +
                ", categoryId='" + categoryId + '\'' +
                ", categoryList='" + categoryList + '\'' +
                '}';
    }
}
